package com.zf.yichat.api.dto.request;

import com.zf.yichat.utils.YiChatMsgCode;
import org.hibernate.validator.internal.util.Contracts;

import java.math.BigDecimal;

/**
 * 一句话描述功能
 *
 * @author fengsong
 * @date create in 15:04 2019/6/11 2019
 */
public class PacketSaleDetailRequest extends FsRequest {


    private Long packetId;

    private BigDecimal longitiude;

    private BigDecimal latitude;

    public BigDecimal getLongitiude() {
        return longitiude;
    }

    public void setLongitiude(BigDecimal longitiude) {
        this.longitiude = longitiude;
    }

    public BigDecimal getLatitude() {
        return latitude;
    }

    public void setLatitude(BigDecimal latitude) {
        this.latitude = latitude;
    }

    public Long getPacketId() {
        return packetId;
    }

    public void setPacketId(Long packetId) {
        this.packetId = packetId;
    }

    @Override
    public void valid() {

        Contracts.assertNotNull(packetId, YiChatMsgCode.SYSTEM_PARAM_ERROR.msg());


    }
}
